package com.business.sys.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 字典类型表 实体类
 * @author generator
 * @date 2019-11-29 13:55:01
 * @since 1.0
 */
@TableName(value = "sys_dictionary_type")
public class DictionaryType extends Model<DictionaryType> {

	private static final long serialVersionUID = 1L;

    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 类型名称和描述
	 */
	private String name; 
	// columns END

	@Override
	protected Serializable pkVal() {
		return id;
	}

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public String getName() {
		return name;
	}

    public void setName(String name) {
    	this.name = name;
    }
	
	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[name:" + getName() + "]";
		return log;
	}
}